<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #myh1{color: red}/*id选择器*/
        .c1{color: blue}/*class选择器*/
        #myh1,h3{background-color: yellow}/*分组选择器*/
        /*包含type属性的元素*/
        [type]{color: red}
        [type="text"]{
            background-color: pink
        }
        /*任意元素选择器*/
        *{
            /*边框:边框粗细 实线边框 边框颜色*/
            border: 1px solid purple;
        }
    </style>
</head>
<body>
<input type="text">
<input type="passwword"></input>
<h1 id="myh1">张三</h1>
<h1>李四</h1>
<h1 class="c1">王五</h1>
<div>div1</div><div>div2</div><div class="c1"div3></div>
<h3 class="c1">我是h3</h3>
</body>
</html>